<?php
switch($action){
    case 'submit_data':
        print_r($_POST);
        echo 'OK';
        exit();
        break;
    default:
        include "./include/ckeditor/ckeditor.php";
        $CKEditor = new CKEditor('./include/ckeditor/');
        /*$CKEditor->config['toolbar'] = array(
            array( '-', 'Bold', 'Italic', 'Underline', 'Strike' ),
            array( 'Image', 'Link', 'Unlink', 'Anchor' )
        );*/
        $CKEditor->config['width'] = '100%';
        $CKEditor->config['extraPlugins'] = 'uicolor';
        $CKEditor->config['uiColor'] = '#AABBFF';
        //{echo $CKEditor->editor("desc")}
        //extraPlugins : 'uicolor',
        //uiColor: '#14B8C4',

        //$CKEditor->replace("more_detail");
        $sql_category = "SELECT * FROM design_category";
        $category_array = $db->fetch_all($sql_category);
        break;
}

?>
